﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DingHeng.TransportationManagement.DataAccess;
using DingHeng.TransportationManagement.Entity;

namespace DingHeng.TransportationManagement.Business
{
    public class DictionaryDataBiz
    {
        public List<DictionaryData> GetByType(string type)
        {
            using (DictionaryDataDataAccess ddda = new DictionaryDataDataAccess())
            {
                return ddda.LoadByCondition(v => v.Type==type && v.IsActive==true).ToList();
            }
        }
    }
}
